package com.cy.detectsys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName db_target_subdomain
 */
@TableName(value ="db_target_subdomain")
@Data
public class DbTargetSubdomain implements Serializable {
    /**
     * 
     */
    @TableId
    private String id;

    /**
     * 
     */
    private String tbNetTargetId;

    /**
     * 
     */
    private String tbNetTargetSubdomain;

    /**
     * 
     */
    private String tbNetTargetSubdomainIps;

    /**
     * 
     */
    private String tbNetTargetSubdomainOrigin;

    /**
     * 
     */
    private Date updateTime;

    /**
     * 
     */
    private Date createTime;

    /**
     * 
     */
    private String updateUser;

    /**
     * 
     */
    private String createUser;

    /**
     * 
     */
    private Integer deleted;

    /**
     * 
     */
    private String tbNetTargetSubdomainDomain;

    /**
     * 
     */
    private String tbNetTargetSubdomainType;

    /**
     * 
     */
    private String tbNetTargetSubdomainPng;

    /**
     * 
     */
    private String tbNetTargetSubdomainHtml;

    /**
     * 
     */
    private String tbNetTargetSubdomainMark;

    /**
     * 
     */
    private String tbNetTargetSubdomainStatus;

    /**
     * 产品
     */
    private String tbNetTargetSubdomainProduct;

    /**
     * 厂商
     */
    private String tbNetTargetSubdomainFactory;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DbTargetSubdomain other = (DbTargetSubdomain) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getTbNetTargetId() == null ? other.getTbNetTargetId() == null : this.getTbNetTargetId().equals(other.getTbNetTargetId()))
            && (this.getTbNetTargetSubdomain() == null ? other.getTbNetTargetSubdomain() == null : this.getTbNetTargetSubdomain().equals(other.getTbNetTargetSubdomain()))
            && (this.getTbNetTargetSubdomainIps() == null ? other.getTbNetTargetSubdomainIps() == null : this.getTbNetTargetSubdomainIps().equals(other.getTbNetTargetSubdomainIps()))
            && (this.getTbNetTargetSubdomainOrigin() == null ? other.getTbNetTargetSubdomainOrigin() == null : this.getTbNetTargetSubdomainOrigin().equals(other.getTbNetTargetSubdomainOrigin()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateUser() == null ? other.getUpdateUser() == null : this.getUpdateUser().equals(other.getUpdateUser()))
            && (this.getCreateUser() == null ? other.getCreateUser() == null : this.getCreateUser().equals(other.getCreateUser()))
            && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()))
            && (this.getTbNetTargetSubdomainDomain() == null ? other.getTbNetTargetSubdomainDomain() == null : this.getTbNetTargetSubdomainDomain().equals(other.getTbNetTargetSubdomainDomain()))
            && (this.getTbNetTargetSubdomainType() == null ? other.getTbNetTargetSubdomainType() == null : this.getTbNetTargetSubdomainType().equals(other.getTbNetTargetSubdomainType()))
            && (this.getTbNetTargetSubdomainPng() == null ? other.getTbNetTargetSubdomainPng() == null : this.getTbNetTargetSubdomainPng().equals(other.getTbNetTargetSubdomainPng()))
            && (this.getTbNetTargetSubdomainHtml() == null ? other.getTbNetTargetSubdomainHtml() == null : this.getTbNetTargetSubdomainHtml().equals(other.getTbNetTargetSubdomainHtml()))
            && (this.getTbNetTargetSubdomainMark() == null ? other.getTbNetTargetSubdomainMark() == null : this.getTbNetTargetSubdomainMark().equals(other.getTbNetTargetSubdomainMark()))
            && (this.getTbNetTargetSubdomainStatus() == null ? other.getTbNetTargetSubdomainStatus() == null : this.getTbNetTargetSubdomainStatus().equals(other.getTbNetTargetSubdomainStatus()))
            && (this.getTbNetTargetSubdomainProduct() == null ? other.getTbNetTargetSubdomainProduct() == null : this.getTbNetTargetSubdomainProduct().equals(other.getTbNetTargetSubdomainProduct()))
            && (this.getTbNetTargetSubdomainFactory() == null ? other.getTbNetTargetSubdomainFactory() == null : this.getTbNetTargetSubdomainFactory().equals(other.getTbNetTargetSubdomainFactory()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getTbNetTargetId() == null) ? 0 : getTbNetTargetId().hashCode());
        result = prime * result + ((getTbNetTargetSubdomain() == null) ? 0 : getTbNetTargetSubdomain().hashCode());
        result = prime * result + ((getTbNetTargetSubdomainIps() == null) ? 0 : getTbNetTargetSubdomainIps().hashCode());
        result = prime * result + ((getTbNetTargetSubdomainOrigin() == null) ? 0 : getTbNetTargetSubdomainOrigin().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateUser() == null) ? 0 : getUpdateUser().hashCode());
        result = prime * result + ((getCreateUser() == null) ? 0 : getCreateUser().hashCode());
        result = prime * result + ((getDeleted() == null) ? 0 : getDeleted().hashCode());
        result = prime * result + ((getTbNetTargetSubdomainDomain() == null) ? 0 : getTbNetTargetSubdomainDomain().hashCode());
        result = prime * result + ((getTbNetTargetSubdomainType() == null) ? 0 : getTbNetTargetSubdomainType().hashCode());
        result = prime * result + ((getTbNetTargetSubdomainPng() == null) ? 0 : getTbNetTargetSubdomainPng().hashCode());
        result = prime * result + ((getTbNetTargetSubdomainHtml() == null) ? 0 : getTbNetTargetSubdomainHtml().hashCode());
        result = prime * result + ((getTbNetTargetSubdomainMark() == null) ? 0 : getTbNetTargetSubdomainMark().hashCode());
        result = prime * result + ((getTbNetTargetSubdomainStatus() == null) ? 0 : getTbNetTargetSubdomainStatus().hashCode());
        result = prime * result + ((getTbNetTargetSubdomainProduct() == null) ? 0 : getTbNetTargetSubdomainProduct().hashCode());
        result = prime * result + ((getTbNetTargetSubdomainFactory() == null) ? 0 : getTbNetTargetSubdomainFactory().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", tbNetTargetId=").append(tbNetTargetId);
        sb.append(", tbNetTargetSubdomain=").append(tbNetTargetSubdomain);
        sb.append(", tbNetTargetSubdomainIps=").append(tbNetTargetSubdomainIps);
        sb.append(", tbNetTargetSubdomainOrigin=").append(tbNetTargetSubdomainOrigin);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateUser=").append(updateUser);
        sb.append(", createUser=").append(createUser);
        sb.append(", deleted=").append(deleted);
        sb.append(", tbNetTargetSubdomainDomain=").append(tbNetTargetSubdomainDomain);
        sb.append(", tbNetTargetSubdomainType=").append(tbNetTargetSubdomainType);
        sb.append(", tbNetTargetSubdomainPng=").append(tbNetTargetSubdomainPng);
        sb.append(", tbNetTargetSubdomainHtml=").append(tbNetTargetSubdomainHtml);
        sb.append(", tbNetTargetSubdomainMark=").append(tbNetTargetSubdomainMark);
        sb.append(", tbNetTargetSubdomainStatus=").append(tbNetTargetSubdomainStatus);
        sb.append(", tbNetTargetSubdomainProduct=").append(tbNetTargetSubdomainProduct);
        sb.append(", tbNetTargetSubdomainFactory=").append(tbNetTargetSubdomainFactory);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}